package com.ruoyi.net.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务-MTN Channel-路由约束配置对象 busi_mtn_channel_constraint
 * 
 * @author tony
 * @date 2024-12-09
 */
public class BusiMtnChannelConstraint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** busi_mtn_channel表主键 */
    @Excel(name = "busi_mtn_channel表主键")
    @ApiModelProperty(value = "busi_mtn_channel表主键")
    private String mtnChannelId;

    /** 约束类型（网元、端口） */
    @Excel(name = "约束类型", readConverterExp = "网=元、端口")
    @ApiModelProperty(value = "约束类型")
    private String constraintType;

    /** 约束策略（1=包含，0=不包含） */
    @Excel(name = "约束策略", readConverterExp = "1==包含，0=不包含")
    @ApiModelProperty(value = "约束策略")
    private String constraintStrategy;

    /** 参数（1网元2端口） */
    @Excel(name = "参数", readConverterExp = "1=网元2端口")
    @ApiModelProperty(value = "参数")
    private String param;

    /** 网元id */
    @Excel(name = "网元id")
    @ApiModelProperty(value = "网元id")
    private String elementId;

    /** 网元名称 */
    @Excel(name = "网元名称")
    @ApiModelProperty(value = "网元名称")
    private String elementName;

    /** 端口id */
    @Excel(name = "端口id")
    @ApiModelProperty(value = "端口id")
    private String portId;

    /** 端口名称 */
    @Excel(name = "端口名称")
    @ApiModelProperty(value = "端口名称")
    private String portName;

    /** 条目状态（0未激活 1已激活） */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    @ApiModelProperty(value = "条目状态")
    private String status;

    /** 删除标记（0正常 2删除） */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMtnChannelId(String mtnChannelId) 
    {
        this.mtnChannelId = mtnChannelId;
    }

    public String getMtnChannelId() 
    {
        return mtnChannelId;
    }
    public void setConstraintType(String constraintType) 
    {
        this.constraintType = constraintType;
    }

    public String getConstraintType() 
    {
        return constraintType;
    }
    public void setConstraintStrategy(String constraintStrategy) 
    {
        this.constraintStrategy = constraintStrategy;
    }

    public String getConstraintStrategy() 
    {
        return constraintStrategy;
    }
    public void setParam(String param) 
    {
        this.param = param;
    }

    public String getParam() 
    {
        return param;
    }
    public void setElementId(String elementId) 
    {
        this.elementId = elementId;
    }

    public String getElementId() 
    {
        return elementId;
    }
    public void setElementName(String elementName) 
    {
        this.elementName = elementName;
    }

    public String getElementName() 
    {
        return elementName;
    }
    public void setPortId(String portId) 
    {
        this.portId = portId;
    }

    public String getPortId() 
    {
        return portId;
    }
    public void setPortName(String portName) 
    {
        this.portName = portName;
    }

    public String getPortName() 
    {
        return portName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mtnChannelId", getMtnChannelId())
            .append("constraintType", getConstraintType())
            .append("constraintStrategy", getConstraintStrategy())
            .append("param", getParam())
            .append("elementId", getElementId())
            .append("elementName", getElementName())
            .append("portId", getPortId())
            .append("portName", getPortName())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
